<html xmlns:th="http://www.thymeleaf.org">
<head>

    <link th:href="@{https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet"/>

</head>
<body>
<p>
    <a href="/input-schedule-job">添加任务</a>
</p>
<table class="table table-bordered">
    <tr>
        <td>任务名称</td>
        <td>任务别名</td>
        <td>任务分组</td>
        <td>任务类</td>
        <td>任务方法</td>
        <td>任务参数类型</td>
        <td>任务参数值</td>
        <td>任务状态</td>
        <td>时间表达式</td>
        <td>任务描述</td>
        <td>操作</td>
    </tr>
    <tbody>
    <!--/*@thymesVar id="scheduleJobVOList" type="antlr"*/-->
    <tr th:each="item : ${scheduleJobVOList}">
        <!--/*@thymesVar id="jobName" type="antlr"*/-->
        <td th:text="${item.jobName}"></td>
        <td th:text="${item.aliasName}"></td>
        <td th:text="${item.jobGroup}"></td>
        <td th:text="${item.jobClassOrInterfaceFullName}"></td>
        <td th:text="${item.jobMethodName}"></td>
        <td th:text="${item.jobMethodParamType}"></td>
        <td th:text="${item.jobMethodParamValue}"></td>
        <td th:text="${item.status}"></td>
        <td th:text="${item.cronExpression}"></td>
        <td th:text="${item.description}"></td>
        <td>
            <a th:href="@{input-schedule-job(id=${item.id})}">编辑</a>
            #* <a th:href="@{input-schedule-job(scheduleJobId=${item.id},keywords='delUpdate')}">删除创建方式</a>*#
            <a th:href="@{delete-schedule-job(scheduleJobId=${item.id})}">删除</a>
            <a th:href=" @{pause-schedule-job(scheduleJobId=${item.id})}">暂停</a>
            <a th:href="@{resume-schedule-job(scheduleJobId=${item.id})}">恢复</a>
            <a th:href="@{run-once-schedule-job(scheduleJobId=${item.id})}">立即运行一次</a>
        </td>
    </tr>
    </tbody>
</table>
<table class="table table-bordered">
    <tr>
        <td>任务名称</td>
        <td>任务别名</td>
        <td>任务分组</td>
        <td>时间表达式</td>
    </tr>
    <tbody>
    <tr th:each="item : ${executingJobList}">
        <!--/*@thymesVar id="jobName" type="antlr"*/-->
        <td th:text="${item.jobName}"></td>
        <td th:text="${item.aliasName}"></td>
        <td th:text="${item.jobGroup}"></td>
        <td th:text="${item.cronExpression}"></td>
    </tr>
    </tbody>
</table>
</body>
</html>
